﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using RFIDStockManagement.Model.Public;
using System.Data;

namespace RFIDStockManagement.IDAL
{
    public interface IBasicInfoAccess
    {
        /// <summary>
        /// 保存
        /// </summary>
        /// <param name="info"></param>
        BasicModelInfo Save(BasicModelInfo info);
        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="lstInfo"></param>
        List<string> Delete(List<string> lstInfo);
        /// <summary>
        /// 模糊资料列表
        /// </summary>
        /// <param name="dctFilter"></param>
        /// <returns></returns>
        DataTable Search(Dictionary<string, object> dctFilter, bool isAnd);
        /// <summary>
        /// 获取资料列表
        /// </summary>
        /// <param name="dctFilter"></param>
        /// <returns></returns>
        DataTable GetList(Dictionary<string, object> dctFilter, bool isAnd);
        /// <summary>
        /// 读取一个
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        BasicModelInfo GetOne(long id);
    }
}
